package com.wiegand.util {
	import flash.display.Sprite;

	/**
	 * @author kw
	 */
	 
	public class RoundRectangle {	
			
		static public function create( color : Number, radius : int, alpha : Number = 1, width : Number = 1, height : Number = 1, x : Number = 0, y : Number = 0 ) : Sprite{
						
			var bg : Sprite = new Sprite();			
			bg.graphics.beginFill( color, alpha );
			bg.graphics.drawRoundRect(0, 0, width, height, radius, radius );
			bg.graphics.endFill();		
			
			bg.x = x;
			bg.y = y;
			
			return bg;
		
		}
	
	}
}
